package com.hhkj.admin.order.service.extend.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hhkj.admin.order.domain.OrderRefundItemAsso;
import com.hhkj.admin.order.model.dopo.OrderRefundItemAssoDo;
import com.hhkj.admin.order.model.dopo.OrderRefundItemAssoPo;
import com.hhkj.admin.order.service.base.OrderRefundItemAssoService;
import com.hhkj.admin.order.service.extend.OrderRefundItemAssoExtendService;
import com.ruoyi.common.base.biz.service.extend.BaseExtendServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderRefundItemAssoExtendServiceImpl
        extends BaseExtendServiceImpl<OrderRefundItemAsso, OrderRefundItemAssoDo, OrderRefundItemAssoPo, OrderRefundItemAssoService>
        implements OrderRefundItemAssoExtendService {

    @Override
    public List<OrderRefundItemAsso> listByRefundIdList(List<Long> refundIdList) {
        LambdaQueryWrapper<OrderRefundItemAsso> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(OrderRefundItemAsso::getRefundId, refundIdList);
        return getService().list(queryWrapper);
    }
}
